package com.sunny.wordstudy;

import android.content.res.Resources;
import android.os.Environment;
import android.os.Handler;
import android.telephony.TelephonyManager;
import java.io.File;
import java.net.URLEncoder;
import java.util.List;
import java.util.Map;

final class u extends Thread
{
  public final void run()
  {
    String str1 = (String)((Map)this.a.a.get(DownloaderView.g(this.a))).get("dbfile");
    try
    {
      String str2 = this.a.getString(2131099665);
      String str3 = (String)((Map)this.a.a.get(DownloaderView.g(this.a))).get("file");
      String str4 = ((TelephonyManager)this.a.getSystemService("phone")).getDeviceId();
      String str5 = "os=android&imei=" + str4;
      if (this.a.c.length() > 0)
        str5 = str5 + "," + this.a.c;
      if (this.a.d.length() > 0)
        str5 = str5 + "," + this.a.d;
      if (this.a.e.length() > 0)
        str5 = str5 + "&band=" + this.a.e;
      String str6 = str5 + "&build=" + this.a.getResources().getString(2131099679);
      if (!("".equals("")))
        str6 = str6 + "&refercode=";
      if (str2.indexOf(63) > 0)
      {
        localObject = str2 + "&";
        String str8 = localObject + str6 + "&filename=" + URLEncoder.encode(str3, "UTF-8");
        DownloaderView.a(this.a, str8, str1);
        String str9 = str1.replace(".zip", ".edb");
        File localFile = new File(new StringBuilder(String.valueOf(Environment.getExternalStorageDirectory().getAbsolutePath())).append(this.a.getString(2131099670)).toString() + str9);
        DownloaderView.b(this.a).post(new v(this, localFile));
        return;
      }
      String str7 = str2 + "?";
      Object localObject = str7;
    }
    catch (Exception localException)
    {
      DownloaderView.b(this.a).post(new w(this, localException));
    }
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.u
 * JD-Core Version:    0.5.3
 */